<template>
  <el-select v-bind="{ ...$props, ...$attrs }" v-on="$listeners">
    <slot>
      <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
      </el-option>
    </slot>
  </el-select>
</template>

<script>
export default {
  name: "ZSelect",
  props: {
    options: {
      type: Array,
      default: () => [],
    },
    size: {
      type: String,
      default: "small",
    },
  },
};
</script>
